package com.ws.entity;

import lombok.Data;

/**
 * @author 王硕
 * @version jdk21
 * @className Employee
 * @description
 * @date 2024/11/7 21:55
 */
@Data
public class Employee {
    private String name;
    private int birthdayMonth;

    public Employee(String name, int birthdayMonth) {
        this.name = name;
        this.birthdayMonth = birthdayMonth;
    }

    public String getName() {
        return name;
    }

    public int getBirthdayMonth() {
        return birthdayMonth;
    }

    public double getSalary(int month) {
        if (month == birthdayMonth) {
            return 100;
        }
        return 0;
    }
}
